#pragma once

#include "AccountMonitor.h"

#define WM_ACCOUNTS_CHANGED WM_USER+101
class CAccountsMgr
{
public:
	static CAccountsMgr* Instance();
protected:
	CAccountsMgr();
public:
	~CAccountsMgr(void);

public:
	void AddAccount(const std::string& companay,
		const std::string& name,
		const std::string& pwd,
		const std::string& srv,
		int port);
	void RemoveAccount(CAccountMonitor* am);

	const std::vector<CAccountMonitor*>& GetAccounts() {return _accounts;}

protected:
	std::vector<CAccountMonitor*> _accounts;
};
